package com.zhiche.lisa.bms.dao.mapper.driver;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.zhiche.lisa.bms.dao.model.driver.PriceconfFreight;
import com.zhiche.lisa.bms.pojo.vo.driver.PriceconfFreightVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 线路单公里运价 Mapper 接口
 * </p>
 *
 * @author zhaoguixin
 * @since 2018-08-30
 */
public interface PriceconfFreightMapper extends BaseMapper<PriceconfFreight> {

    /**
     * 分页查找线路单公里价格
     * @param page
     * @param ew
     * @return
     */
    List<PriceconfFreightVO> selectByConditions(Page<PriceconfFreightVO> page,
                                                @Param("ew") Wrapper<PriceconfFreightVO> ew);

    /**
     * 查找线路单公里价格
     * @param ew
     * @return
     */
    PriceconfFreightVO getOneByEW(@Param("ew") Wrapper<PriceconfFreightVO> ew);
}
